export default [
    {
        path: '/index',
        name: 'index',
        meta: { title: '考勤管理-首页' },
        component: () => import('../views/Index.vue'),
        children: [
            {
                path: '/index/business',
                name: 'business',
                meta: { title: '出差申请', permission: 11 },
                component: () => import('../views/index/Business.vue')
            },
            {
                path: '/index/outside',
                name: 'outside',
                meta: { title: '外勤打卡', permission: 12 },
                component: () => import('../views/index/Outside.vue')
            },
            {
                path: '/index/leave',
                name: 'leave',
                meta: { title: '请假申请', permission: 13 },
                component: () => import('../views/index/Leave.vue')
            },
            {
                path: '/index/work',
                name: 'work',
                meta: { title: '加班申请', permission: 14 },
                component: () => import('../views/index/Work.vue')
            },
            {
                path: '/index',
                redirect: '/index/business'
            },
            {
                path: '/index/:error(.*)',
                component: () => import('../views/NotFound.vue')
            },
        ]
    },
    {
        path: '/register',
        name: 'register',
        meta: { title: '考勤管理-注册', permission: 2 },
        component: () => import('../views/Register.vue')
    },
]